﻿@model IEnumerable<KCMS.BusinessLogic.Models.Page>
<table id="page-list">
    <tr>
        <th>
            Title
        </th>
        <th>
            MetaDescription
        </th>
        <th>
            MetaKeys
        </th>
        <th>
            DateOfCreate
        </th>
        <th>
            DateOfChange
        </th>
        <th>
            Published
        </th>
        <th>
            Code
        </th>
        <th>
            Index
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MetaDescription)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MetaKeys)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateOfCreate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateOfChange)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Published)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Code)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Index)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id=item.Id  }) |
            @Html.ActionLink("Copy", "Copy", new { id = item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.Id })
        </td>
    </tr>
}

</table>